|LF_STANDARD|
|LF_CREATE|
|?TREE=&raquo; <a class=tree href="/CMD_USER_SHOW">`LANG_SHOW_USERS`</a> &raquo; <a class=tree href="/HTM_ACCOUNT_USER_CREATE">`LANG_CREATE_USER`</a>|
|?HELP_SECTION=`RESELLER_HELPER`/create.html|
|HTM_RESELLER_TOP|

|?CHECK_NAME=checkName()|
|?CHECK_PASS=|
|?RANDOM_PASS=randomPass()|
|?CHECK_DOMAIN=checkDomain()|

|*if AJAX="1"|
	|?CHECK_NAME=ajax_checkName()|
	|?CHECK_PASS=onChange="ajax_checkPass()"|
	|?RANDOM_PASS=ajax_randomPass('')|
	|?CHECK_DOMAIN=ajax_checkDomain()|

	<script type="text/javascript" src="JS_CREATION_CHECK"></script>
|*endif|

<script language="Javascript">
<!--

|HTM_JAVASCRIPT|

function setText( textfld, checkbx)
{
	if (checkbx.checked)
		textfld.disabled = true;
	if (!checkbx.checked)
		textfld.disabled = false;
}

function setTexts()
{
	with (document.reseller)
	{
		if (sharedip.checked) ip.disabled = true;
		if (uquota.checked) quota.disabled = true;
		if (ubandwidth.checked) bandwidth.disabled = true;
		if (undomains.checked) ndomains.disabled = true;
		if (unsqldbs.checked) nsqldbs.disabled = true;
	}
}

function formOK()
{
	with (document.reseller)
	{
		if (checkName() && checkPass() && checkDomain() && checkEmail())
			return true;
	}
	return false;
}

function showUserMessage()
{
	var message = window.open("CMD_EDIT_USER_MESSAGE","message","width=740,height=520,scrollbars=no,resizable=yes");
}

// -->
</script>

<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- titulo -->
		<div class="bcpbp-titulo">
			<h2>|LANG_CREATE_USER|</h2>
		</div>
		<!-- fin titulo -->

		<form name=reseller action="CMD_ACCOUNT_USER" method="post" onSubmit="return formOK()">

			|HTM_PREVENT_AUTOFILL|

			<input type=hidden name=action value=create>

			<div class="bcpbp-form">
				<label for="|LANG_USERNAME|">|LANG_USERNAME|</label>
				<div class="form-datos">
					<input type=text id=username name=username size=32 maxlength=|MAX_USERNAME_LENGTH| onChange="|CHECK_NAME|">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_EMAIL|">|LANG_EMAIL|</label>
				<div class="form-datos">
					<input type=text name=email size=32 onChange="checkEmail()">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_ENTER_PASS|">|LANG_ENTER_PASS|</label>
				<div class="form-datos">
					<input type=password id=passwd name=passwd size=32 |CHECK_PASS|>
					<div id=passwd_result class=warning></div>
					<input type=button value="|LANG_RANDOM|" onClick="|RANDOM_PASS|">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_RE-ENTER_PASS|">|LANG_RE-ENTER_PASS|</label>
				<div class="form-datos">
					<input type=password id=passwd2 name=passwd2 size=32 onChange="checkPass()">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_DOMAIN|">|LANG_DOMAIN|</label>
				<div class="form-datos">
					<input type=text id=domain name=domain size=32 onChange="|CHECK_DOMAIN|">
					<div id=domain_result class=warning></div>
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_USE_USER_PACK|">|LANG_USE_USER_PACK|</label>
				<div class="form-datos">
					|PACKAGES|
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_IP|">|LANG_IP|</label>
				<div class="form-datos">
					|IPSELECT|
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_EMAIL_NOTIFY|">|LANG_EMAIL_NOTIFY|</label>
				<div class="form-datos">
					<input type=checkbox value="yes" name=notify checked>
					<a href="javascript:showUserMessage();">|LANG_EDIT_USER_MESS|</a>
				</div>
			</div>

			<!-- contenedor para boton submit -->
			<div class="bcpbp-form--submit">
				<input type=submit name=customize value="|LANG_CUSTOMIZE|">
				<input type=submit name=add value="|LANG_SUBMIT|">
			</div> <!-- fin contenedor para boton submit -->

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->

|HTM_RESELLER_BOTTOM|
